package com.platform.service.impl;

import com.platform.dao.AccountSnapshotDao;
import com.platform.entity.AccountSnapshotEntity;
import com.platform.service.AccountSnapshotService;
import com.platform.service.IncomeCoinService;
import com.platform.service.UserAssetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-28 16:49:31
 */
@Service("accountSnapshotService")
public class AccountSnapshotServiceImpl implements AccountSnapshotService {
    @Autowired
    private AccountSnapshotDao accountSnapshotDao;
    @Autowired
    private UserAssetService userAssetService;
    @Autowired
    private IncomeCoinService incomeCoinService;

    @Override
    public AccountSnapshotEntity queryObject(Integer id) {
        return accountSnapshotDao.queryObject(id);
    }

    @Override
    public List<AccountSnapshotEntity> queryList(Map<String, Object> map) {
        return accountSnapshotDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return accountSnapshotDao.queryTotal(map);
    }

    @Override
    public int save(AccountSnapshotEntity accountSnapshot) {
        return accountSnapshotDao.save(accountSnapshot);
    }

    @Override
    public int update(AccountSnapshotEntity accountSnapshot) {
        return accountSnapshotDao.update(accountSnapshot);
    }

    @Override
    public int delete(Integer id) {
        return accountSnapshotDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return accountSnapshotDao.deleteBatch(ids);
    }


}
